package com.weatherstation.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.weatherstation.entity.RolePermission;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface RolePermissionMapper extends BaseMapper<RolePermission> {
    
    @Select("SELECT * FROM role_permission WHERE role_code = #{roleCode}")
    List<RolePermission> findByRoleCode(@Param("roleCode") String roleCode);
} 